package com.group9.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RepairAssetExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RepairAssetExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdIsNull() {
            addCriterion("repair_asset_id is null");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdIsNotNull() {
            addCriterion("repair_asset_id is not null");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdEqualTo(Integer value) {
            addCriterion("repair_asset_id =", value, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdNotEqualTo(Integer value) {
            addCriterion("repair_asset_id <>", value, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdGreaterThan(Integer value) {
            addCriterion("repair_asset_id >", value, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("repair_asset_id >=", value, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdLessThan(Integer value) {
            addCriterion("repair_asset_id <", value, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdLessThanOrEqualTo(Integer value) {
            addCriterion("repair_asset_id <=", value, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdIn(List<Integer> values) {
            addCriterion("repair_asset_id in", values, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdNotIn(List<Integer> values) {
            addCriterion("repair_asset_id not in", values, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdBetween(Integer value1, Integer value2) {
            addCriterion("repair_asset_id between", value1, value2, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairAssetIdNotBetween(Integer value1, Integer value2) {
            addCriterion("repair_asset_id not between", value1, value2, "repairAssetId");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeIsNull() {
            addCriterion("repair_submit_time is null");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeIsNotNull() {
            addCriterion("repair_submit_time is not null");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeEqualTo(Date value) {
            addCriterion("repair_submit_time =", value, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeNotEqualTo(Date value) {
            addCriterion("repair_submit_time <>", value, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeGreaterThan(Date value) {
            addCriterion("repair_submit_time >", value, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("repair_submit_time >=", value, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeLessThan(Date value) {
            addCriterion("repair_submit_time <", value, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeLessThanOrEqualTo(Date value) {
            addCriterion("repair_submit_time <=", value, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeIn(List<Date> values) {
            addCriterion("repair_submit_time in", values, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeNotIn(List<Date> values) {
            addCriterion("repair_submit_time not in", values, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeBetween(Date value1, Date value2) {
            addCriterion("repair_submit_time between", value1, value2, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitTimeNotBetween(Date value1, Date value2) {
            addCriterion("repair_submit_time not between", value1, value2, "repairSubmitTime");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpIsNull() {
            addCriterion("repair_submit_emp is null");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpIsNotNull() {
            addCriterion("repair_submit_emp is not null");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpEqualTo(Integer value) {
            addCriterion("repair_submit_emp =", value, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpNotEqualTo(Integer value) {
            addCriterion("repair_submit_emp <>", value, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpGreaterThan(Integer value) {
            addCriterion("repair_submit_emp >", value, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpGreaterThanOrEqualTo(Integer value) {
            addCriterion("repair_submit_emp >=", value, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpLessThan(Integer value) {
            addCriterion("repair_submit_emp <", value, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpLessThanOrEqualTo(Integer value) {
            addCriterion("repair_submit_emp <=", value, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpIn(List<Integer> values) {
            addCriterion("repair_submit_emp in", values, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpNotIn(List<Integer> values) {
            addCriterion("repair_submit_emp not in", values, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpBetween(Integer value1, Integer value2) {
            addCriterion("repair_submit_emp between", value1, value2, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairSubmitEmpNotBetween(Integer value1, Integer value2) {
            addCriterion("repair_submit_emp not between", value1, value2, "repairSubmitEmp");
            return (Criteria) this;
        }

        public Criteria andRepairReasonIsNull() {
            addCriterion("repair_reason is null");
            return (Criteria) this;
        }

        public Criteria andRepairReasonIsNotNull() {
            addCriterion("repair_reason is not null");
            return (Criteria) this;
        }

        public Criteria andRepairReasonEqualTo(String value) {
            addCriterion("repair_reason =", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonNotEqualTo(String value) {
            addCriterion("repair_reason <>", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonGreaterThan(String value) {
            addCriterion("repair_reason >", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonGreaterThanOrEqualTo(String value) {
            addCriterion("repair_reason >=", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonLessThan(String value) {
            addCriterion("repair_reason <", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonLessThanOrEqualTo(String value) {
            addCriterion("repair_reason <=", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonLike(String value) {
            addCriterion("repair_reason like", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonNotLike(String value) {
            addCriterion("repair_reason not like", value, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonIn(List<String> values) {
            addCriterion("repair_reason in", values, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonNotIn(List<String> values) {
            addCriterion("repair_reason not in", values, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonBetween(String value1, String value2) {
            addCriterion("repair_reason between", value1, value2, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonNotBetween(String value1, String value2) {
            addCriterion("repair_reason not between", value1, value2, "repairReason");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsIsNull() {
            addCriterion("repair_reason_pics is null");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsIsNotNull() {
            addCriterion("repair_reason_pics is not null");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsEqualTo(String value) {
            addCriterion("repair_reason_pics =", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsNotEqualTo(String value) {
            addCriterion("repair_reason_pics <>", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsGreaterThan(String value) {
            addCriterion("repair_reason_pics >", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsGreaterThanOrEqualTo(String value) {
            addCriterion("repair_reason_pics >=", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsLessThan(String value) {
            addCriterion("repair_reason_pics <", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsLessThanOrEqualTo(String value) {
            addCriterion("repair_reason_pics <=", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsLike(String value) {
            addCriterion("repair_reason_pics like", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsNotLike(String value) {
            addCriterion("repair_reason_pics not like", value, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsIn(List<String> values) {
            addCriterion("repair_reason_pics in", values, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsNotIn(List<String> values) {
            addCriterion("repair_reason_pics not in", values, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsBetween(String value1, String value2) {
            addCriterion("repair_reason_pics between", value1, value2, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairReasonPicsNotBetween(String value1, String value2) {
            addCriterion("repair_reason_pics not between", value1, value2, "repairReasonPics");
            return (Criteria) this;
        }

        public Criteria andRepairEmpIsNull() {
            addCriterion("repair_emp is null");
            return (Criteria) this;
        }

        public Criteria andRepairEmpIsNotNull() {
            addCriterion("repair_emp is not null");
            return (Criteria) this;
        }

        public Criteria andRepairEmpEqualTo(Integer value) {
            addCriterion("repair_emp =", value, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpNotEqualTo(Integer value) {
            addCriterion("repair_emp <>", value, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpGreaterThan(Integer value) {
            addCriterion("repair_emp >", value, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpGreaterThanOrEqualTo(Integer value) {
            addCriterion("repair_emp >=", value, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpLessThan(Integer value) {
            addCriterion("repair_emp <", value, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpLessThanOrEqualTo(Integer value) {
            addCriterion("repair_emp <=", value, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpIn(List<Integer> values) {
            addCriterion("repair_emp in", values, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpNotIn(List<Integer> values) {
            addCriterion("repair_emp not in", values, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpBetween(Integer value1, Integer value2) {
            addCriterion("repair_emp between", value1, value2, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairEmpNotBetween(Integer value1, Integer value2) {
            addCriterion("repair_emp not between", value1, value2, "repairEmp");
            return (Criteria) this;
        }

        public Criteria andRepairStatusIsNull() {
            addCriterion("repair_status is null");
            return (Criteria) this;
        }

        public Criteria andRepairStatusIsNotNull() {
            addCriterion("repair_status is not null");
            return (Criteria) this;
        }

        public Criteria andRepairStatusEqualTo(Short value) {
            addCriterion("repair_status =", value, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusNotEqualTo(Short value) {
            addCriterion("repair_status <>", value, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusGreaterThan(Short value) {
            addCriterion("repair_status >", value, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("repair_status >=", value, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusLessThan(Short value) {
            addCriterion("repair_status <", value, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusLessThanOrEqualTo(Short value) {
            addCriterion("repair_status <=", value, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusIn(List<Short> values) {
            addCriterion("repair_status in", values, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusNotIn(List<Short> values) {
            addCriterion("repair_status not in", values, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusBetween(Short value1, Short value2) {
            addCriterion("repair_status between", value1, value2, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairStatusNotBetween(Short value1, Short value2) {
            addCriterion("repair_status not between", value1, value2, "repairStatus");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkIsNull() {
            addCriterion("repair_remark is null");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkIsNotNull() {
            addCriterion("repair_remark is not null");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkEqualTo(String value) {
            addCriterion("repair_remark =", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkNotEqualTo(String value) {
            addCriterion("repair_remark <>", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkGreaterThan(String value) {
            addCriterion("repair_remark >", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("repair_remark >=", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkLessThan(String value) {
            addCriterion("repair_remark <", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkLessThanOrEqualTo(String value) {
            addCriterion("repair_remark <=", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkLike(String value) {
            addCriterion("repair_remark like", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkNotLike(String value) {
            addCriterion("repair_remark not like", value, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkIn(List<String> values) {
            addCriterion("repair_remark in", values, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkNotIn(List<String> values) {
            addCriterion("repair_remark not in", values, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkBetween(String value1, String value2) {
            addCriterion("repair_remark between", value1, value2, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairRemarkNotBetween(String value1, String value2) {
            addCriterion("repair_remark not between", value1, value2, "repairRemark");
            return (Criteria) this;
        }

        public Criteria andRepairCostIsNull() {
            addCriterion("repair_cost is null");
            return (Criteria) this;
        }

        public Criteria andRepairCostIsNotNull() {
            addCriterion("repair_cost is not null");
            return (Criteria) this;
        }

        public Criteria andRepairCostEqualTo(BigDecimal value) {
            addCriterion("repair_cost =", value, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostNotEqualTo(BigDecimal value) {
            addCriterion("repair_cost <>", value, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostGreaterThan(BigDecimal value) {
            addCriterion("repair_cost >", value, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("repair_cost >=", value, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostLessThan(BigDecimal value) {
            addCriterion("repair_cost <", value, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostLessThanOrEqualTo(BigDecimal value) {
            addCriterion("repair_cost <=", value, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostIn(List<BigDecimal> values) {
            addCriterion("repair_cost in", values, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostNotIn(List<BigDecimal> values) {
            addCriterion("repair_cost not in", values, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("repair_cost between", value1, value2, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairCostNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("repair_cost not between", value1, value2, "repairCost");
            return (Criteria) this;
        }

        public Criteria andRepairPicsIsNull() {
            addCriterion("repair_pics is null");
            return (Criteria) this;
        }

        public Criteria andRepairPicsIsNotNull() {
            addCriterion("repair_pics is not null");
            return (Criteria) this;
        }

        public Criteria andRepairPicsEqualTo(String value) {
            addCriterion("repair_pics =", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsNotEqualTo(String value) {
            addCriterion("repair_pics <>", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsGreaterThan(String value) {
            addCriterion("repair_pics >", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsGreaterThanOrEqualTo(String value) {
            addCriterion("repair_pics >=", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsLessThan(String value) {
            addCriterion("repair_pics <", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsLessThanOrEqualTo(String value) {
            addCriterion("repair_pics <=", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsLike(String value) {
            addCriterion("repair_pics like", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsNotLike(String value) {
            addCriterion("repair_pics not like", value, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsIn(List<String> values) {
            addCriterion("repair_pics in", values, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsNotIn(List<String> values) {
            addCriterion("repair_pics not in", values, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsBetween(String value1, String value2) {
            addCriterion("repair_pics between", value1, value2, "repairPics");
            return (Criteria) this;
        }

        public Criteria andRepairPicsNotBetween(String value1, String value2) {
            addCriterion("repair_pics not between", value1, value2, "repairPics");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}